package com.ddstation.home_page.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ddstation.home_page.model.HpCommonParModel;
import com.ddstation.home_page.model.MapModel;
import com.ddstation.home_page.model.NameValueModel;

public interface HomePageMapper {
	// 查询监控机构数
	int selectMonitoringInstitutionCnt(
            @Param("invsInstitutionId") String invsInstitutionId);
	// 查询异常的机构数（包括处方违规、警告）
	int selectAbnormalInstitutions(HpCommonParModel _p);
	
	// 查询异常行为合计值
	int selectAbnormalCnt(HpCommonParModel _p);

	// 查询异常行为合计值
	int selectAbnormalCnt2(HpCommonParModel _p);
	
	// 监控电子处方数
	int selectMonitoringPrescriptionCnt(HpCommonParModel _p); 
	
	// 不良执业行为数
	int selectBadPracticingBehaviorCnt(HpCommonParModel _p); 
	
	// 警告分类统计
	List<NameValueModel> selectWarningClassify(HpCommonParModel _p);
	
	// 地图散点图数据查询[不良执业行为]
	List<MapModel> selectBadPracticingTown(HpCommonParModel _p); 
	
	// 地图散点图数据查询[异常行为警告 镇的坐标]查询
	List<MapModel> selectAbnormalTown(@Param("townIdList") List<String> townIdList);
	
	// 半年趋势
	List<NameValueModel> selectTimeLine(HpCommonParModel _p);
}
 